// src/addon/addon.controller.ts
import { Controller, Get, Query } from '@nestjs/common';
import { AddonService } from './addon.service';

@Controller('addon')
export class AddonController {
  constructor(private readonly addonService: AddonService) { }

  @Get('fibonacci')
  getFibonacci(@Query('n') n: string) {
    const num = parseInt(n);
    return { result: this.addonService.fibonacci(num) };
  }
}


